package pack1;

import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.zip.Checksum;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;

public class sprg15 {
	public static void main(String[] args) {
		WebDriver driver=new FirefoxDriver();
		driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
		driver.get("http://www.gsmarena.com/nokia-phones-1.php");
		
	List<WebElement> allChkBox = driver.findElements(By.xpath("//input[@type='Checkbox']"));
		int t=allChkBox.size();
		System.out.println(t);
		for(int i=0;i<t;i++)
		{allChkBox.get(i).click();			
		}
	}
}
